<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-danger"><i class="icon-lock"></i> 屏蔽</a>
		<a class="btn btn-warning"><i class="icon-unlock"></i> 解除屏蔽</a>
		<a class="btn btn-xs btn-info"><i class="icon-eye-open"></i> 查看公告</a>
	</div>
</div>
<table cellpadding="1" cellspacing="1" class="table table-bordered">
	<thead>
		<tr class="ui-widget-header">
			<th>标题</th>
			<th style="width:100px">创建人</th>
			<th style="width:100px">发布时间</th>
			<th style="width:50px">是否发布</th>
			<th style="width:50px;">操作</th>
		</tr>
	</thead>
	<#list pageBean.resultList as ann>
	<tr class="ui-widget-content">
		<td><a href onclick="showAnn_annCollect('${(ann.code)!''}'); return false;">${(ann.title)!''}</a></td>
		<td>${(ann.cuname)!''}</td>
		<td>${(ann.rt?string("yyyy-MM-dd"))!''}</td>
		<td<#if ann.edition> style="color: red; font-weight: bold;"</#if>>
			<@mt.YesOrNo value=((ann.edition)!"") r=false />
		</td>
		<td>
			<div class="btn-group">
			<#if !ann.collcetList[0].deleted>
			<a href="javascript:;" onclick="javascript:shieldAnnCollect_annCollect('${ann.code}', '${ann.title}');" data-toggle="tooltip" title="屏蔽" class="btn btn-xs btn-danger"><i class="icon-lock"></i></a>
			<#else>
			<a href="javascript:;" onclick="javascript:unshieldAnnCollect_annCollect('${ann.code}', '${ann.title}');" data-toggle="tooltip" title="解除屏蔽" class="btn btn-xs btn-warning"><i class="icon-unlock"></i></a>
			</#if>
			<a href="javascript:;" onclick="showAnn_annCollect('${(ann.code)!''}'); return false;" data-toggle="tooltip" title="查看公告" class="btn btn-xs btn-info"><i class="icon-eye-open"></i></a>
			</div>
		</td>
	</tr>
	</#list>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'queryAnnCollect_annCollect'/>